home *** CD-ROM | disk | FTP | other *** search
/ The Macintosh Demo: Applications / Apple-MacintoshDemoApplicationsCD-1.0-1992.iso / More Information / MacDraw Pro / MacDraw Pro Demo / MacDraw Pro Demo.rsrc / STR#_7100.txt < prev    next >
Encoding:
Text File  |  1992-08-10  |  618 b   |  79 lines

  1. /CI2I {
  2.  
  3.  
  4.  /rgbArray turkeypat length array def
  5.  
  6.  
  7.  /grayBuf turkeypat length 3 idiv string def
  8.  
  9.  
  10.  /i 0 def
  11.  
  12.  
  13.  /j 0 def
  14.  
  15.  
  16.  turkeypat {rgbArray j 3 -1 roll put /j j 1 add def} forall
  17.  
  18.  
  19.  /i 0 def
  20.  
  21.  
  22.  /j 0 def
  23.  
  24.  
  25.     grayBuf length{
  26.  
  27.  
  28.     rgbArray i get 0.33 mul
  29.  
  30.  
  31.       /i i 1 add def
  32.  
  33.  
  34.       rgbArray i get 0.55 mul add
  35.  
  36.  
  37.       /i i 1 add def
  38.  
  39.  
  40.       rgbArray i get 0.12 mul add cvi
  41.  
  42.  
  43.       /i i 1 add def
  44.  
  45.  
  46.       grayBuf j 3 -1 roll put /j j 1 add def
  47.  
  48.  
  49.  } repeat
  50.  
  51.  
  52.  /turkeypat grayBuf length string def
  53.  
  54.  
  55.  grayBuf turkeypat copy pop
  56.  
  57.  
  58. } bind def
  59.  
  60.  
  61. /FCI {
  62.  
  63.  
  64. {turkeypat} false 3 colorimage
  65.  
  66.  
  67. } bind def
  68.  
  69.  
  70. /FI {
  71.  
  72.  
  73. {turkeypat} image
  74.  
  75.  
  76. } bind def
  77.  
  78.  
  79.